package com.example.demo.persistence;

import com.example.demo.domain.Item ;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface ItemDao {
    void updateInventoryQuantity(@Param("param") Map<String, Object> param);

    int getInventoryQuantity(@Param("itemId") String itemId);

    List<Item> getItemListByProduct(@Param("productId") String productId);

    Item getItem(@Param("itemId") String itemId);

    void updateItemSaleVolume(@Param("param") Map<String,Object> param);
}
